package org.sky.vo;

import org.sky.model.Person;

public class PersonVO extends BaseVO{

    /**
     * 用户编号
     */
    private int id;

    /**
     * 登录帐号
     */
    private String userName;

    /**
     * 登录密码
     */
    private String password;

    /**
     * 电子邮箱
     */
    private String email;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 信誉度
     */
    private int credit = 100;

    /**
     * 使用次数
     */
    private int level = 0;
    /**
     * 账号状态
     */
    private boolean enable = true;

    /**
     * 权限组
     */
    private String groupName;

    /*
    *构造person
     */
    private Person person;

    public PersonVO(){}

    public PersonVO(Person person){
        this.id = person.getId();
        this.password = person.getPassword();
        this.phone = person.getPhone();
        this.userName = person.getUserName();
        this.email = person.getEmail();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

}